package com.liqing.lqrpc.proxy;

import java.lang.reflect.Proxy;

/**
 * TODO 类描述
 *
 * @author Li Qing
 * @date 2024/7/5 0:03
 */
public class ServiceProxyFactory {
    public static <T> T getProxy(Class<T> serviceClass) {
        return (T) Proxy.newProxyInstance(
                serviceClass.getClassLoader(),
                new Class[]{serviceClass},
                new ServiceProxy()
        );
    }
}
